package com.nbcio.iot.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.nbcio.common.mybatis.core.domain.BaseEntity;

import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 采集数据记录
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("iot_data_record")
public class IotDataRecord extends BaseEntity {

    @TableId(value = "record_id", type = IdType.ASSIGN_ID)
    private Long recordId;

    @TableField("device_id")
    private Long deviceId;

    @TableField("point_id")
    private Long pointId;

    @TableField("data_value")
    private String dataValue;

    @TableField("data_time")
    private Date dataTime;

    @TableField("quality")
    private String quality;
} 